﻿using System;
namespace Pay.DTO.chpay {
	/// <summary>
	/// 批量代付请求
	/// </summary>
	public class ch_batch_transfer : ch_base_req {
		public ch_batch_transfer() {
#if DEBUG
			service_id = "tf56pay.batchPay.payApply";
#else
			service_id = "tf56enterprise.batchPay.payApply";
#endif
		}
		/// <summary>
		/// 商户唯一编号
		/// </summary>
		public string enterprisecode { get; set; }
		/// <summary>
		/// 支付账户
		/// </summary>
		public string accountnumber { get; set; }
		/// <summary>
		/// 批量代付批次编号
		/// </summary>
		public string batchno { get; set; }
		/// <summary>
		/// 代付总笔数
		/// </summary>
		public int batchnum { get; set; }
		/// <summary>
		/// 代付总金额:单位：元，如0.01
		/// </summary>
		public string batchamount { get; set; }
		/// <summary>
		/// 代付日期:代付日期不能小于当日
		/// </summary>
		public string paydate { get; set; }
		/// <summary>
		/// 付款的详细数据，最多支持999笔。(详细见2.5.3代付明细参数说明)
		/// 格式为：流水号1^商品名称1^收款方银行卡号1^收款账号姓名1^付款金额1^银行卡类型1^银行卡借贷类型1^银行名称1^支行1^省1^市1^联行号1^描述1^备注说明1|流水号2^商品名称^收款方银行卡号2^收款账号姓名2^付款金额2^银行卡类型2^银行卡借贷类型2^银行名称2^支行2^省2^市2^联行号2^描述2^备注说明2。
		/// 每条记录以“|”间隔。
		/// </summary>
		public string paydetail { get; set; }
		/// <summary>
		/// 回调客户端url
		/// </summary>
		public string backurl { get; set; }
	}

	/// <summary>
	/// 批量代付查询请求
	/// </summary>
	public class ch_batch_transfer_query : ch_base_req {
		public ch_batch_transfer_query() {
#if DEBUG
			service_id = "tf56pay.batchPay.resultQuery";
#else
			service_id = "tf56enterprise.batchPay.resultQuery";
#endif
		}
		/// <summary>
		/// 批次号
		/// </summary>
		public string batchno { get; set; }
		/// <summary>
		/// 业务流水号:为空时返回整个批次的处理结果
		/// </summary>
		public string businessnumber { get; set; }
	}

	/// <summary>
	/// 批量代付查询响应
	/// </summary>
	public class ch_batch_transfer_result {
		/// <summary>
		/// 批次号
		/// </summary>
		public string batchNo { get; set; }
		/// <summary>
		/// 业务流水号
		/// </summary>
		public string businessNumber { get; set; }
		/// <summary>
		/// 支付流水号
		/// </summary>
		public string payBusinessNumber { get; set; }
		/// <summary>
		/// 商品名称
		/// </summary>
		public string subject { get; set; }
		/// <summary>
		/// 代付金额:单位：元
		/// </summary>
		public string payAmount { get; set; }
		/// <summary>
		/// 收方账号
		/// </summary>
		public string Toaccountnumber { get; set; }
		/// <summary>
		/// 银行卡号
		/// </summary>
		public string bankCardNumber { get; set; }
		/// <summary>
		/// 银行卡姓名
		/// </summary>
		public string bankCardName { get; set; }
		/// <summary>
		/// 状态:待处理，成功，失败
		/// </summary>
		public string status { get; set; }
		/// <summary>
		/// 处理结果描述
		/// </summary>
		public string dealResult { get; set; }
		/// <summary>
		/// 备注
		/// </summary>
		public string remark { get; set; }
		/// <summary>
		/// 提交日期
		/// </summary>
		public string inputDate { get; set; }
		/// <summary>
		/// 最后处理日期
		/// </summary>
		public string stampDate { get; set; }
	}
}
